<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<section id="sync-detail-section">
	<div class="row-fluid">
		<div class="span6">
			<div class="page-header">
				<h3>Item Detail</h3>
			</div>
		</div>
		<div class="span18">
			<table class="table table-striped table-bordered table-condensed">
				<tbody>
					<tr>
						<td>Item</td>
						<td><a href="item/${item.id}">${item.path}</a></td>
					</tr>
					<tr>
						<td>Folder</td>
						<td><a href="folder/${item.folder.id}">${item.folder.name}</a></td>
					</tr>
					<tr>
						<td>Length</td>
						<td>${item.length}</td>
					</tr>
					<tr>
						<td>Last Modified</td>
						<td>${item.lastModified}</td>
					</tr>
					<tr>
						<td>Create Provider</td>
						<td><a href="provider/${item.createProvider.id}">${item.createProvider.name}</a></td>
					</tr>
					<tr>
						<td>Create Tick</td>
						<td>${item.createTick}</td>
					</tr>
					<tr>
						<td>Update Provider</td>
						<td><a href="provider/${item.updateProvider.id}">${item.updateProvider.name}</a></td>
					</tr>
					<tr>
						<td>Update Tick</td>
						<td>${item.updateTick}</td>
					</tr>
				</tbody>
			</table>

			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>Provider</th>
						<th>Hash</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${item.hashs}" var="hash">
						<tr>
							<td><a href="provider/${hash.provider.id}">${hash.provider.name}</a></td>
							<td>${hash.hash}</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</section>